package com.naiterui.ehp.bs.doctor.service;

import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.doctor.vo.VersionResultVo;

/**
 * @author luao
 * @date 2022/4/2 10:40 AM
 **/
public interface AdVersionService {

    /**
     * 检查更新
     * 
     * @param version
     * @param paltform
     * @param newVer
     * @param request
     * @return
     * @throws BusinessException
     */
    VersionResultVo versionCheck(String version, String paltform, String newVer, String hVersion, String hPpaltform)
        throws BusinessException;

    /**
     * 添加App更新
     * 
     * @param appPlat
     * @param lastVerNum
     * @param lastVerSize
     * @param result
     * @param forceVersion
     * @param content
     * @param url
     * @throws BusinessException
     */
    void saveVersion(Integer appPlat, String lastVerNum, String lastVerSize, Integer result, String forceVersion,
        String content, String url) throws BusinessException;

    /**
     * 添加H5更新
     * 
     * @param lastVerNum
     */
    void saveH5Version(String lastVerNum);
}
